#ifndef CHAT_WIDGET_H
#define CHAT_WIDGET_H

#include <QWidget>

#include "ui_chat_widget.h"

class tcp_client;


namespace Ui {
class ChatWidget;
}

class ChatWidget : public QWidget
{
    Q_OBJECT
    ChatWidget(QWidget *parent = nullptr);
    ~ChatWidget();

    void setTcpClient(std::shared_ptr<tcp_client> clientPtr);
public:

    Ui::ChatWidget *ui;

    std::shared_ptr<tcp_client> clientPtr_ = nullptr;
};

#endif // #include <memory>